package lesson.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lesson.entity.LineTrend;
import lesson.entity.NocvData;
import lesson.mapper.IndexMapper;
import lesson.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:
 * @Author: Wanzhen
 * @Date: 2022/6/8-22:38
 */
@Service
public class IndexServiceImpl extends ServiceImpl<IndexMapper, NocvData> implements IndexService {

    @Autowired
    private IndexMapper indexMapper;

    @Override
    public List<LineTrend> fineSevenDate() {
        List<LineTrend> list = indexMapper.findSevenData();
        return list;
    }

    @Override
    public List<NocvData> listOrderByIdLimit34() {
        return indexMapper.listOrderByIdLimit34();
    }

}
